package cn.cy.mp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author : 残影
 * @Date: 2020/7/24 17:12\
 * @MapperScan("cn.cy.mp.mapper")
 */
@Configuration
public class MybatisPlusConfig {
    /**
     * 配置分页插件的bean
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
